<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html">
 
    <h:head>
        <title>Authentification</title>
        <link rel="stylesheet" href="../styles/style.css" />
    </h:head>
    <h:body>
    	<h:panelGroup rendered="#{loginBean.loginSucces}">
			<meta http-equiv="Refresh" content="0; URL=accueil.jsf"/>
    	</h:panelGroup>
    
	    <h:panelGroup rendered="#{!loginBean.loginSucces}">
	    	<div id="content_login">
				<h:form>
					<div class="login">
							<div class="title"> 
								 <h:outputText value="Veuillez vous authentifier" /> 
							</div>
							<div class="error_msg">
								<h:outputText value="#{loginBean.errorMsg}" />
							</div>
							<div class="username">
								<div class="outputUsername"><h:outputText styleClass="outputUsername" value="Login : " /></div>
								<div class="inputUsername"><h:inputText id="login" value="#{loginBean.login}" /></div>
							</div>
							<div class="clear"></div>
							<div class="password">
								<div class="outputPassword"><h:outputText value="Mot de passe : " /></div>
								<div class="inputPassword"><h:inputSecret id="password" value="#{loginBean.password}" /></div>
							</div>
							<div class="clear"></div>
							<div class="bouton_valider">
								<h:commandButton value="Valider" action="#{loginBean.valideLogin}"/>
							</div>					
					</div>
				</h:form>
			</div>
		</h:panelGroup>
    </h:body>
</html>